package com.hedl.studyandjava8.test.practice;

import com.hedl.studyandjava8.test.entity.Car;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/02/17/11:19
 */
public class StudyEnum {
    public static void main(String[] args) {
        System.out.println("所有汽车的价格：");
        for (Car c : Car.values()) {
            System.out.println(c+"需要 "+c.getPrice()+"千美元。");
        }
    }
}
